from django.shortcuts import render,reverse
from django.http import HttpResponse


def show_mobile(request, phone_num):
    return HttpResponse(f'手机号为: {phone_num}')


def blog(request, blog_id):
    return HttpResponse(f'参数blog_id值为: {blog_id}')


def get_url(request):
    return HttpResponse(f"反向解析的url为: {reverse('url')}")


def login(requst):
    return HttpResponse(f"反向解析的url为： {reverse(login)}")

def url_path(request):
    return HttpResponse(f"当前url:{(reverse('url_path',current_app=request.path))}")
